package com.stx.day0910;

import java.util.Scanner;

/**
 * packageName com.stx.day0910
 *
 * @author YangYi
 * @className MethodToFor
 * @date 2025/9/10
 * @description TODO
 */
public class MethodToFor {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入乘法表数字：");
        int num = scanner.nextInt();
        int count;
        multMethod(num);
    }

    /**
     * 打印乘法表
     */
    public static void multMethod(int num){
        int count = 0;
        int count_1 = 1;
        for(int i = 1;i<=num;i++){
            for(int j=1;j<=i;j++){
                System.out.print(j+"*"+i+"="+(i*j)+"\t");
            }
            System.out.print("\n");
        }
        System.out.println(count);
    }
}
